<div class="container-fluid">

	<!-- affichage des messages Flash-->
  	<div class="row-fluid">
		<div class="span12">
			<?php echo $this->Session_gpp->flash();?>
		</div>
	</div>

	<!-- Titre de la page-->
	<div class="row-fluid">
		<div class="span12">
			<legend><?php echo __('Creation d\'une Nouvelle Table'); ?></legend>
		</div>
	</div>

	<!-- Barre des boutons-->
	<div class="row-fluid">
		<div class="span12">
			<div class="navbar"/>
				<div class="navbar-inner_gpp">
					<div class="container-fluid">
						<div class="nav-collapse">
							<div class="row-fluid">
								<div class="span2">
									<a href="#" class="btn btn-success btn-small" onclick="document.getElementById('TableAddForm').submit();"><i class="icon-ok icon-white"></i><?php echo __(' Enregistrer')?></a>
			        			</div>
								<div class="span2">	
									<a href="./../../versions/view/<?php echo $idversion ; ?>" class="btn btn-inverse btn-small"><i class="icon-remove icon-white"></i><?php echo __(' Annuler')?></a>
						  		</div>
								<div class="span8">	
								</div>
						  	</div>
										
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- div de saisie des informations-->
	<?php echo $this->Form->create('Table');?>
		<div class="row-fluid">
	  		<div class="span12">
				<div class="tables form">
					<fieldset>
						<legend><?php echo __('Add Table'); ?></legend>
					<?php
						echo $this->Form->input('name');
						echo $this->Form->input('description');
						echo $this->Form->input('entetescript');
						echo $this->Form->input('piedscript');
					?>
						<input type="hidden" name="data[Table][version_id]" id="TableVersionId" value="<?php echo $idversion ; ?>" />
					</fieldset>
				</div>
			</div>
		</div>
	<?php echo $this->Form->end();?>
</div>
